# /Applications/CocosCreator.app/Contents/MacOS/CocosCreator --project ../ --build "md5Cache=false;platform=android;debug=false;"


# 编译热更文件
hotUpdateUrl=http://121.37.251.120:9600
hotFolder=hotupdate

rm -rf ../native/jsb-default/assets
rm -rf ../native/jsb-default/src
cp -r ../build/jsb-default/assets ../native/jsb-default/
cp -r ../build/jsb-default/src  ../native/jsb-default/

rm -rf hotupdate.zip
rm -rf ./$hotFolder
mkdir ./$hotFolder
cp -r ../build/jsb-default/assets  ./$hotFolder/
cp -r ../build/jsb-default/src  ./$hotFolder/
# # # 生成热更新文件
sh hotupdate.sh $hotUpdateUrl $hotFolder  

# zip -q -r hotupdate.zip hotupdate